package controller;

import compiler.Compiler;
import java.util.Scanner;

public class Shell {
    
    public static void main(String[] args) {
        for (;;) {
            System.out.print(" > ");
            String nextLine = new Scanner(System.in).nextLine();
            if (nextLine.equalsIgnoreCase("q")) {
                System.exit(0);
            }
            System.out.print(new Compiler().compile(nextLine).get("M"));
            System.out.println();
        }
    }
}
